<script type="text/javascript">
	$(document).ready(function() {
		$("#archive").datepicker({
			dateFormat: 'yy-mm-dd',
			changeYear: true,
			onSelect: function(dateText, inst) {
									
			}
		});
	});
</script>
<form class="form-horizontal" method='post' action='/documents/archive/<?php echo $id;?>'>
    <div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
		<h3 id="myModalLabel">Delete</h3>
	</div>
	<div class="modal-body">
		<div class="control-group">
			<label class="control-label" for="release">Archive Date</label>
			<div class="controls">
				<input type="text" id="archive" placeholder="Archive Date" name="data[Document][archive_date]">
			</div>
		</div>
	</div>
	<div class="modal-footer">
		<button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
		<button class="btn btn-primary">Archive</button>
	</div>
</form>
